package yang;


import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import yang.config.SpringConfig;
import yang.service.YangService;

/**
 * @Description:
 * @author: Yang Qiang
 * @create: 2021-10-11 22:29
 */
@Slf4j
public class YangTest {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(SpringConfig.class);
		YangService bean = applicationContext.getBean(YangService.class);
		System.out.println(bean);
	}
}
